package com.scau.dao;

import java.util.List;
import java.util.Map;

import com.scau.pojo.Teacher;

public interface TeacherDao {
	//获取所有老师
	public List<Teacher> query();
	
	//添加老师
	public int add(Teacher teacher);
	//删除老师
	public int deleteMulti(int id);
	//更新信息
	public int update(Teacher teacher);
	//根据用户名获取老师
	public Map<String,Object> getTeacherByName(String tName);
	//该用户名是否已存在
	public int isExist(String tName);
}
